# This code is so you can run the samples without installing the package
import sys
import os
# sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))



from cocos.director import director
from cocos.layer import *
from cocos.scene import Scene
from cocos.actions import *
from cocos.sprite import *
import gameview

from pyglet import *

from constants import WINDOW_HEIGHT,WINDOW_WIDTH

if __name__ == "__main__":

    #pyglet.resource.path.append('data')
    #pyglet.resource.path.append(['resources/maps', 'resources/images'])
    pyglet.resource.path = ['resources/images']#, 'resources/maps']
    pyglet.resource.reindex()
    # font.add_directory('data')

    director.init( resizable = True, width = WINDOW_WIDTH, height = WINDOW_HEIGHT )
    scene = gameview.get_newgame()

    director.run( scene )